package com.bean;

import com.imessage.type.BaseState;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;

@Getter
@Setter
@ToString
@Entity
@Table(name = "base_product", schema = "public")
public class BaseProduct extends BaseModel implements Serializable {

    @Column(name = "name", nullable = true, length = 255)
    private String name;

    @Column(name = "family", nullable = true, length = 255)
    private String family;

    @Column(name = "manufacturer", nullable = true, length = 255)
    private String manufacturer;

    @Column(name = "bios_version", nullable = true, length = 255)
    private String biosVersion;

    @Column(name = "bios_date", nullable = true, length = 255)
    private String biosDate;

    @Column(name = "bios_vendor", nullable = true, length = 255)
    private String biosVendor;

    @Column(name = "system_version", nullable = true, length = 255)
    private String systemVersion;

    @Column(name = "chassis_manufacturer", nullable = true, length = 255)
    private String chassisManufacturer;

    @Column(name = "location_in_chassis", nullable = true, length = 255)
    private String locationInChassis;

    @Column(name = "chassis_asset_tag", nullable = true, length = 255)
    private String chassisAssetTag;

    @Column(name = "chassis_type", nullable = true, length = 255)
    private String chassisType;

    @Column(name = "board_type", nullable = true, length = 255)
    private String boardType;

    @Column(name = "state", nullable = true, length = 2)
    private BaseState state = BaseState.normal;

}
